package sk.avicularia.core.data;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;

import sk.avicularia.core.dao.GeneralObjectsDAO;

/**
 * Entita mapujuca vseobecne pouzivane dva parametre. Datum vytvorenia zaznamu a
 * datum jeho modifikacie.
 * 
 * @author leaflock
 * @since 0.1
 */
public class GeneralObjects implements Serializable
{

	/**
	 * @see Serializable
	 */
	private static final long	serialVersionUID	= -8108466508027228219L;

	/**
	 * Datum vytvorenia zaznamu
	 */
	@Column(name = GeneralObjectsDAO.COLUMN_CREATED, nullable = false)
	private Date				created				= new Date();

	/**
	 * Datum modifikacie zaznamu
	 */
	@Column(name = GeneralObjectsDAO.COLUMN_MODIFIED)
	private Date				modified;

	public Date getCreated()
	{
		return created;
	}

	public void setCreated(Date created)
	{
		this.created = created;
	}

	public Date getModified()
	{
		return modified;
	}

	public void setModified(Date modified)
	{
		this.modified = modified;
	}
}
